package com.mgface.framework.functioninterface;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.LineNumberReader;
import java.nio.charset.StandardCharsets;

public class LineNumberReaderTest {
	public static void main(String[] args) throws Exception {
		try (LineNumberReader reader = new LineNumberReader(new BufferedReader(new FileReader(new File("D:/1.txt"))))) {
			String sb = new String();
			while ((sb = reader.readLine()) != null) {
				System.out.println(new String(sb.getBytes(), StandardCharsets.UTF_8));
			} 
		}
	}
}
